#include "iostream"
using namespace std;
int main()
{   int x,revers_num;
    int revers(int);
    bool isPolind(int,int);
    cin>>x;
    revers_num=revers(x);
    cout<<"The pilindroe is:"<<revers_num<<endl;
    isPolind(x,revers_num);
    return 0;
}

int revers(int x)
{
    int n=0,revers_num=0;
    while(x!=0)
    {
        n=x%10;
        revers_num*=10;
        revers_num+=n;
        x/=10;
    }
    return revers_num;
}
bool isPolind(int x,int y)
{
    if(x==y)    cout<<"Is!";
    else cout<<"Isn't!";

}